<template>
  <div class="pt-20">
    <div class="w100 bgff br-16 pl-20 pr-20">
        <div class="w100 h-60 rowsb rowsm" style="border-bottom: 1px solid rgba(112, 112, 112, .14);" v-for="(item,index) in list" :key="index" @click="changeScoreIndex(2,item.type)">
            <div class="fs-12 col333">{{item.name}}</div>
            <div class="fs-12" style="color: #E33636;">{{item.userPosition}}积分</div>
        </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      list:[]
    };
  },
  watch: {},
  computed: {},
  methods: {
    changeScoreIndex(i,type){
            this.$emit('changeScoreIndex',{
                index:i,
                type:type
            })
        },
        getList(){
          this.$axios.post('proldconfig/listByUser',{}).then(res => {
            if(res.data.code != 200) return this.$notify({
              title: '提示',
              message: res.data.msg
            });
            let {data:{list}} = res.data
          this.list = list
          })
        }
  },
  created() {
    this.getList()
  },
  mounted() {}
};
</script>
<style lang="scss" scoped>
</style>